<template>
  <div class="content">
    <div class="header">
      <div class="header_l">
        <span class="leiji">累计积分</span>
        <span class="num">{{data.a}}</span>
      </div>
      <div class="header_m">

      </div>
      <div class="header_l">
        <span class="leiji">可用积分</span>
        <span class="num">{{data.a}}</span>
      </div>
    </div>
    <div class="body">
      <div class="list">
        <div class="listCon" v-for="(item, index) in data.icrobotUserPoints" :key="index">
          <div class="con_l">
            <img src="/img/jifen/jifentubiao.png" alt="">
          </div>
          <div class="con_r">
            <div class="con_l_info">
              <div class="title">{{item.remark}}</div>
              <div class="date">{{item.createTime}}</div>
            </div>
            <div class="number">
              +<span>{{item.point}}</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      data: {}
    };
  },
  mounted() {
    this.data=this.$route.query.data;
  }
};
</script>

<style lang="scss" scoped>
.content {
  font-size: 0.1rem;
  width: 100%;
  min-height: 100%;
  background-color: #f7f9fa;
  .header {
    width: 7.5rem;
    height: 0.78rem;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    .header_l {
      .leiji {
        font-size: 0.26rem;
        font-family: PingFang SC;
        font-weight: 400;
        color: #333333;
      }
      .num {
        font-size: 0.26rem;
        font-family: PingFang SC;
        font-weight: bold;
        color: #f97329;
        margin-left: 0.18rem;
      }
    }
    .header_m {
      width: 0.02rem;
      height: 0.52rem;
      background: #e7e7e7;
      margin: 0 1.05rem;
    }
  }
  .body {
    .list {
      .listCon {
        padding: 0 0.24rem;
        margin-top: 0.28rem;
        display: flex;
        align-items: center;
        .con_l {
          margin-right: 0.24rem;
          img {
            width: 0.74rem;
            height: 0.74rem;
          }
        }
        .con_r {
          width: 6.52rem;
          display: flex;
          align-items: center;
          justify-content: space-between;
          border-bottom: 0.01rem #e7e7e7 solid;
          padding-bottom: 0.3rem;
          .con_l_info {
            .title {
              font-size: 0.28rem;
              line-height: 0.28rem;
              font-family: PingFang SC;
              font-weight: 400;
              color: #333333;
            }
            .date {
              font-size: 0.2rem;
              line-height: 0.2rem;
              font-family: PingFang SC;
              font-weight: 400;
              color: #9b9b9b;
              margin-top: 0.2rem;
            }
          }
          .number {
            font-size: 0.34rem;
            font-family: PingFang SC;
            font-weight: bold;
            color: #f9732c;
          }
        }
      }
    }
  }
}
</style>